/*
 * @Author: worldzb 
 * @Date: 2019-05-11 17:07:07 
 * @Last Modified by: worldzb
 * @Last Modified time: 2019-05-11 17:27:52
 */

var bg = chrome.extension.getBackgroundPage().bg; //后台对象
 
$('#confirm').click(function(){
    const keyword = $('.keyword').val();
    const isJump = $('input[name="c"]:checked').val();
    bg.keyword=keyword;
    bg.isJump=isJump;
});

window.onload=function(){
    $('.keyword').val(bg.keyword);
    if(bg.isJump==='否'){
        $('input[name="c"]')[1].checked=true;
    }else{
        $('input[name="c"]')[0].checked=true;
    }
}
